#!/bin/sh
make clean
touch myOS/kernel/communicate/*
make

if [ $? -ne 0 ]; then
	echo "make failed"
else
	echo "make succeed"
	rm -r output/multibootheader
	rm -r output/myOS
	rm -r output/userApp
	# qemu-system-i386 -kernel output/myOS.elf -serial pty &
	qemu-system-i386 -kernel output/myOS.elf -serial stdio
fi
